﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
//using System.ComponentModel.DataAnnotations.Schema;

namespace CodeCamp.Model
{
    //[Table("cc_TaskTimeSlots")]
    public class TaskTimeslot
    {
        //[Key]
        //[DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        private ICollection<Tasks_Timeslot> _Tasks_Timeslots;
        public virtual ICollection<Tasks_Timeslot> Tasks_Timeslots
        {
            get { return _Tasks_Timeslots ?? (_Tasks_Timeslots = new List<Tasks_Timeslot>()); }
            protected set { _Tasks_Timeslots = value; }
        }

        [Required]
        public DateTime Date { get; set; }

        [Required]
        public TimeSpan StartTime { get; set; }

        [Required]
        public TimeSpan EndTime { get; set; }

        [Required]
        public int VolunteersNeeded { get; set; }
    }
}
